package cn.itsource.org.mapper;

import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper {

    void save(Department department);

    void delete(Long id);


    void update(Department department);

    Department loadById(Long id);

    List<Department> loadAll();

    //分页
    Integer queryCount(DepartmentQuery departmentQuery);

    List<Department> queryData(DepartmentQuery departmentQuery);
}
